package com.example.demo.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.example.demo.entity.EmployeeEntity;
import com.example.demo.mapper.EmployeeLWYMapper;
import com.example.demo.service.EmployeeLWYService;

@Service
public class EmployeeLWYServiceImpl implements EmployeeLWYService {

	@Resource
	private EmployeeLWYMapper employeeLWYMapper;

	/**
	 * すべてクエリ
	 * 
	 * @return EmployeeEntity
	 */
	@Override
	public EmployeeEntity getAll() {

		// データを取得します
		EmployeeEntity resList = employeeLWYMapper.getAll();

		// 検索結果判定
		if (resList != null) {
			return resList;
		}
		return new EmployeeEntity();
	}
}